#define _CRT_SECURE_NO_WARNINGS	


bool canPermutePalindrome(char* s)
{
    int arr[128] = { 0 };
    int len = strlen(s);
    for (int i = 0; i < len; i++)
    {
        arr[(int)s[i]]++;
    }
    int count = 0;
    for (int i = 65; i <= 122; i++)
    {
        if (arr[i] % 2 == 1)
            count++;
    }
    if (count <= 1)
        return true;
    return false;
}